#pragma once

#include <string>

static const int MD5_DIGEST_LENGTH = 16;

class md5str
{
public:
	md5str(const char* str);
	~md5str(void);

	const char* c_str();

	static const char* hex2str(char** pstr, const unsigned char* arhex, int arlen = MD5_DIGEST_LENGTH);
	static void freestr( char** pstr );

private:
	std::string md5;
};

